<script setup>
import TodoList from './components/TodoList.vue'
</script>

<template>
  <div class="app-container">
    <div class="app-header">
      <h1 class="app-title">Todo<span class="highlight">App</span></h1>
      <p class="app-subtitle">高效管理你的日常任务</p>
    </div>
    <TodoList />
    <div class="app-footer">
      <p>© 2024 TodoApp - 优雅的待办事项管理工具</p>
    </div>
  </div>
</template>

<style>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
}

.app-container {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

.app-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.highlight {
  background: linear-gradient(45deg, #1890ff, #722ed1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.app-subtitle {
  font-size: 1.3rem;
  color: #666;
  font-weight: 400;
}

.app-footer {
  margin-top: 50px;
  text-align: center;
  color: #8c8c8c;
  font-size: 1rem;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .app-container {
    padding: 35px 0;
  }
  
  .app-header {
    margin-bottom: 35px;
  }
  
  .app-title {
    font-size: 2.8rem;
  }
  
  .app-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .app-container {
    padding: 30px 0;
  }
  
  .app-header {
    margin-bottom: 30px;
  }
  
  .app-title {
    font-size: 2.5rem;
  }
  
  .app-subtitle {
    font-size: 1.1rem;
  }
  
  .app-footer {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 20px 0;
  }
  
  .app-header {
    margin-bottom: 20px;
  }
  
  .app-title {
    font-size: 2rem;
  }
  
  .app-subtitle {
    font-size: 1rem;
  }
  
  .app-footer {
    margin-top: 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 15px 0;
  }
  
  .app-header {
    margin-bottom: 15px;
  }
  
  .app-title {
    font-size: 1.8rem;
  }
  
  .app-subtitle {
    font-size: 0.9rem;
  }
  
  .app-footer {
    margin-top: 25px;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .app-container {
    padding: 10px 0;
  }
  
  .app-title {
    font-size: 1.6rem;
  }
}
</style>
